/**
 * =====================================================================================
 *       @file  ngx_shmem.h
 *      @brief  
 *
 *  Detailed description starts here.
 *
 *   @internal
 *     Created  2012年05月11日 09时58分06秒 
 *    Revision  1.0.0.0
 *    Compiler  gcc/g++
 *
 *     @author  luis
 * =====================================================================================
 */
#ifndef _H_NGX_SHMEM_H_INCLUDED_
#define _H_NGX_SHMEM_H_INCLUDED_

#include <stddef.h>
#include <sys/types.h>
#include "ngx_config.h"
#include "ngx_core.h"
#include "ngx_string.h"

typedef struct
{
    u_char      *addr;
    size_t      size;
    ngx_str_t   name;
    ngx_uint_t  exists;
} ngx_shm_t;

ngx_int_t ngx_shm_alloc(ngx_shm_t *shm);
void ngx_shm_free(ngx_shm_t *shm);

#endif
